import Inset from "../maths/Inset";

export default class Scale9Data {
    public image: HTMLImageElement;
    private _inset: Inset;

    public set inset(value: Inset) {
        this._inset = value;
    }

    public get leftMargin(): number {
        return this._inset.leftMargin;
    }

    public get rightMargin(): number {
        return this._inset.rightMargin;
    }

    public get topMargin(): number {
        return this._inset.topMargin;
    }

    public get bottomMargin(): number {
        return this._inset.bottomMargin;
    }

    public constructor(image: HTMLImageElement, inset: Inset) {
        this.image = image;
        this._inset = inset;
    }
}